package com.maxh.util;

public class ReturnError {
    /**
     * 状态码
     */
    private int code;

    /**
     * 返回信息
     */
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public ReturnError(){
    }

    public ReturnError(int code){
        this.code=code;
    }

    public ReturnError(String msg){
        this.msg = msg;
    }

    public ReturnError(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public ReturnError(StatusCode userResponseEnum,String msg){
        this.code = userResponseEnum.getCode();
        this.msg = msg;
    }
}
